![]() |
NavCustomControl |
||||
Header: | Navigation.h | Carbon status: | Supported | |
Allows your application to control various settings in Navigation Services dialog boxes.
OSErr NavCustomControl ( NavContext context, NavCustomControlMessage selector, void *parms );
A value set by your application to provide context. When Navigation Services processes your NavCustomControl call and, in turn, calls your event-handling function, you can obtain this value from the context field of the structure of type NavCBRec specified in the callBackParms parameter of your event-handling function.
A value of type NavCustomControlMessage. Pass one or more of the constants representing the possible values used to control various aspects of the active dialog box. For a description of these constants, see
A pointer to a configuration value. Some of the control setting constants passed in the selector parameter require that you provide an additional configuration value. For a description of which constants require configuration values, see
A result code.
If you have provided an event-handling function and an event occurs in a Navigation Services dialog box, Navigation Services calls your event-handling function and specifies one of the constants described in
Navigation Services does not accept calls to the NavCustomControl function until an appropriate dialog box is fully initialized and displayed. Always check for the kNavCBStart constant, described in
Note that your application can call the NavCustomControl function from within its event-handling function or its preview-drawing function.
See also “Adding Custom Controls” and “Handling Events”.
Navigation Services does not accept calls to the NavCustomControl function until an appropriate dialog box is fully initialized and displayed. Always check for the kNavCBStart constant, described in “Event Message Constants”, in the param field of the NavCBRec structure before calling the NavCustomControl function.
Note that your application can call the NavCustomControl function from within its event-handling function or its preview-drawing function.
Available in Navigation Services 1.0 and later.
Supported in Carbon. Available in CarbonLib 1.0 and later when NavigationLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by NavigationLib 1.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/17/2000)